home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleEditableText.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  165 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleEditableText.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleEditableText_h__
  6. #define __gen_nsIAccessibleEditableText_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIAccessibleEditableText */
  19. #define NS_IACCESSIBLEEDITABLETEXT_IID_STR "91f0a56c-11be-47c7-8d02-7c15e00c05f5"
  20.  
  21. #define NS_IACCESSIBLEEDITABLETEXT_IID \
  22.   {0x91f0a56c, 0x11be, 0x47c7, \
  23.     { 0x8d, 0x02, 0x7c, 0x15, 0xe0, 0x0c, 0x05, 0xf5 }}
  24.  
  25. class NS_NO_VTABLE nsIAccessibleEditableText : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEEDITABLETEXT_IID)
  29.  
  30.   /**
  31.       * Set font styles, such as italic, bold...
  32.       */
  33.   /* void setAttributes (in long startPos, in long endPos, in nsISupports attributes); */
  34.   NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) = 0;
  35.  
  36.   /* void setTextContents (in AString text); */
  37.   NS_IMETHOD SetTextContents(const nsAString & text) = 0;
  38.  
  39.   /* void insertText (in AString text, in long position); */
  40.   NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) = 0;
  41.  
  42.   /* void copyText (in long startPos, in long endPos); */
  43.   NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) = 0;
  44.  
  45.   /* void cutText (in long startPos, in long endPos); */
  46.   NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) = 0;
  47.  
  48.   /* void deleteText (in long startPos, in long endPos); */
  49.   NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) = 0;
  50.  
  51.   /* void pasteText (in long position); */
  52.   NS_IMETHOD PasteText(PRInt32 position) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIACCESSIBLEEDITABLETEXT \
  58.   NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes); \
  59.   NS_IMETHOD SetTextContents(const nsAString & text); \
  60.   NS_IMETHOD InsertText(const nsAString & text, PRInt32 position); \
  61.   NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos); \
  62.   NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos); \
  63.   NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos); \
  64.   NS_IMETHOD PasteText(PRInt32 position); 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  67. #define NS_FORWARD_NSIACCESSIBLEEDITABLETEXT(_to) \
  68.   NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) { return _to SetAttributes(startPos, endPos, attributes); } \
  69.   NS_IMETHOD SetTextContents(const nsAString & text) { return _to SetTextContents(text); } \
  70.   NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) { return _to InsertText(text, position); } \
  71.   NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) { return _to CopyText(startPos, endPos); } \
  72.   NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) { return _to CutText(startPos, endPos); } \
  73.   NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) { return _to DeleteText(startPos, endPos); } \
  74.   NS_IMETHOD PasteText(PRInt32 position) { return _to PasteText(position); } 
  75.  
  76. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  77. #define NS_FORWARD_SAFE_NSIACCESSIBLEEDITABLETEXT(_to) \
  78.   NS_IMETHOD SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributes(startPos, endPos, attributes); } \
  79.   NS_IMETHOD SetTextContents(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextContents(text); } \
  80.   NS_IMETHOD InsertText(const nsAString & text, PRInt32 position) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertText(text, position); } \
  81.   NS_IMETHOD CopyText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyText(startPos, endPos); } \
  82.   NS_IMETHOD CutText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->CutText(startPos, endPos); } \
  83.   NS_IMETHOD DeleteText(PRInt32 startPos, PRInt32 endPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteText(startPos, endPos); } \
  84.   NS_IMETHOD PasteText(PRInt32 position) { return !_to ? NS_ERROR_NULL_POINTER : _to->PasteText(position); } 
  85.  
  86. #if 0
  87. /* Use the code below as a template for the implementation class for this interface. */
  88.  
  89. /* Header file */
  90. class nsAccessibleEditableText : public nsIAccessibleEditableText
  91. {
  92. public:
  93.   NS_DECL_ISUPPORTS
  94.   NS_DECL_NSIACCESSIBLEEDITABLETEXT
  95.  
  96.   nsAccessibleEditableText();
  97.  
  98. private:
  99.   ~nsAccessibleEditableText();
  100.  
  101. protected:
  102.   /* additional members */
  103. };
  104.  
  105. /* Implementation file */
  106. NS_IMPL_ISUPPORTS1(nsAccessibleEditableText, nsIAccessibleEditableText)
  107.  
  108. nsAccessibleEditableText::nsAccessibleEditableText()
  109. {
  110.   /* member initializers and constructor code */
  111. }
  112.  
  113. nsAccessibleEditableText::~nsAccessibleEditableText()
  114. {
  115.   /* destructor code */
  116. }
  117.  
  118. /* void setAttributes (in long startPos, in long endPos, in nsISupports attributes); */
  119. NS_IMETHODIMP nsAccessibleEditableText::SetAttributes(PRInt32 startPos, PRInt32 endPos, nsISupports *attributes)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* void setTextContents (in AString text); */
  125. NS_IMETHODIMP nsAccessibleEditableText::SetTextContents(const nsAString & text)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* void insertText (in AString text, in long position); */
  131. NS_IMETHODIMP nsAccessibleEditableText::InsertText(const nsAString & text, PRInt32 position)
  132. {
  133.     return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135.  
  136. /* void copyText (in long startPos, in long endPos); */
  137. NS_IMETHODIMP nsAccessibleEditableText::CopyText(PRInt32 startPos, PRInt32 endPos)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* void cutText (in long startPos, in long endPos); */
  143. NS_IMETHODIMP nsAccessibleEditableText::CutText(PRInt32 startPos, PRInt32 endPos)
  144. {
  145.     return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147.  
  148. /* void deleteText (in long startPos, in long endPos); */
  149. NS_IMETHODIMP nsAccessibleEditableText::DeleteText(PRInt32 startPos, PRInt32 endPos)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153.  
  154. /* void pasteText (in long position); */
  155. NS_IMETHODIMP nsAccessibleEditableText::PasteText(PRInt32 position)
  156. {
  157.     return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159.  
  160. /* End of implementation class template. */
  161. #endif
  162.  
  163.  
  164. #endif /* __gen_nsIAccessibleEditableText_h__ */
  165.